package com.xian.cloud.rpc;

import com.xian.cloud.entity.UserEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import sun.awt.SunHints;

import java.util.List;

/**
 * @Author: xlr
 * @Date: Created in 下午6:02 2018/11/11
 */
@RequestMapping("user")
public interface UserServiceApi {

    /**
     * 根据名称获取ID
     * @param id
     * @return
     */
    @RequestMapping(value= "info/{id}",method = RequestMethod.GET)
    List<UserEntity> fingById(@PathVariable("id") Long id);

    /**
     * 保存user
     * @param user
     * @return
     */
    @RequestMapping(value = "save",method = RequestMethod.POST)
    Boolean saveUser(UserEntity user);

}
